﻿using DevExpress.XtraNavBar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DevMy.PublicSetUp
{
    public class Class_NavBar
    {
        public void SetNavBarControlStyle(NavBarControl p_NavBar)
        {
            p_NavBar.AllowDrop = true;
            p_NavBar.Appearance.GroupBackground.Font = new System.Drawing.Font("Verdana", 8.25F);
            p_NavBar.Appearance.GroupBackground.Options.UseBackColor = true;
            p_NavBar.Appearance.GroupBackground.Options.UseFont = true;
            p_NavBar.Appearance.GroupHeader.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold);
            p_NavBar.Appearance.GroupHeader.Options.UseFont = true;
            p_NavBar.Appearance.GroupHeaderActive.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold);
            p_NavBar.Appearance.GroupHeaderActive.Options.UseFont = true;
            p_NavBar.Appearance.GroupHeaderActive.Options.UseTextOptions = true;
            p_NavBar.Appearance.GroupHeaderActive.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            p_NavBar.Appearance.GroupHeaderHotTracked.Font = new System.Drawing.Font("Verdana", 10F, System.Drawing.FontStyle.Bold);
            p_NavBar.Appearance.GroupHeaderHotTracked.Options.UseFont = true;
            p_NavBar.Appearance.GroupHeaderHotTracked.Options.UseTextOptions = true;
            p_NavBar.Appearance.GroupHeaderHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near;
            p_NavBar.Appearance.GroupHeaderPressed.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Bold);
            p_NavBar.Appearance.GroupHeaderPressed.Options.UseFont = true;
            p_NavBar.Appearance.ItemDisabled.Options.UseTextOptions = true;
            p_NavBar.Appearance.ItemDisabled.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            p_NavBar.Appearance.ItemDisabled.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
            p_NavBar.Appearance.ItemHotTracked.Font = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Underline);
            p_NavBar.Appearance.ItemHotTracked.Options.UseFont = true;
            p_NavBar.Appearance.ItemHotTracked.Options.UseTextOptions = true;
            p_NavBar.Appearance.ItemHotTracked.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            p_NavBar.Appearance.ItemHotTracked.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
            p_NavBar.Appearance.ItemPressed.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Underline);
            p_NavBar.Appearance.ItemPressed.Options.UseFont = true;
            p_NavBar.Appearance.ItemPressed.Options.UseTextOptions = true;
            p_NavBar.Appearance.ItemPressed.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
            p_NavBar.Appearance.ItemPressed.TextOptions.WordWrap = DevExpress.Utils.WordWrap.Wrap;
            p_NavBar.DragDropFlags = DevExpress.XtraNavBar.NavBarDragDrop.None;
        }

    }
}
